import {defineStore} from 'pinia'

export const useStoreDemo=defineStore('storeDemo',{
    state: ()=>{
        return {
            msg: "Hello, Pinia"
        }
    },
    getters: {},
    actions: {
        changeStoreDemo(value){
            this.msg = value
        }
    }
})

export const useIsCollapse=defineStore('isCollapse',{
    state: ()=>{
        return {
            isCollapse: false
        }
    },
    getters: {},
    actions: {
        changeIsCollapse(){
            this.isCollapse = !this.isCollapse
        }
    }
})